Skip to content

build: Detect Java 21 and set JAVA_HOME and PATH in run_locally.sh#1071

Open
jimbojw wants to merge 1 commit intoPAIR-code:mainfrom
jimbojw:run-locally-on-java-21-if-installed
Open

build: Detect Java 21 and set JAVA_HOME and PATH in run_locally.sh#1071
jimbojw wants to merge 1 commit intoPAIR-code:mainfrom
jimbojw:run-locally-on-java-21-if-installed

Conversation

@jimbojw
Copy link
Copy Markdown
Collaborator

@jimbojw jimbojw commented Apr 1, 2026

When running locally, Deliberate Lab runs against Firebase emulators. These require a particularly narrow set of Java versions, preferring version 21.

This change honors the environment's specified JAVA_HOME if present. Otherwise, it looks for Java 21, and if found, sets the JAVA_HOME and PATH environment variables locally before bringing up the emulators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant